package finger.service;

import finger.domain.Book;
import finger.domain.Page;

import java.util.List;

public interface BookService {

    public int addBook(Book book);

    public int deleteBookById(Integer id);

    public int updateBook(Book book);

    public Book queryBookById(Integer id);

    public List<Book> queryBooks();

    public Page page(int pageNo, int pageSize);

    public Page pageByPrice(Integer pageNo, Integer pageSize, Integer min, Integer max);
}
